import Vue from "vue";

// let path = "http://192.168.1.170:80/"; //测试服
// Vue.prototype.pathURL = "http://192.168.1.170:80/"; //测试服
// Vue.prototype.routerURL = "http://192.168.1.184/jfmall/#/"; //跳转地址

let path1 = "https://119.hezongyy.com/"; //数据大屏
Vue.prototype.pathURL1 = "https://119.hezongyy.com/"; //数据大屏

// let path = "https://uatnewapi.hezongyy.com/"; //预生产
// Vue.prototype.pathURL = "https://uatnewapi.hezongyy.com/"; //预生产
// Vue.prototype.routerURL = "https://uatjfmall.hezongyy.com/#/"; //跳转地址
// Vue.prototype.routerURL = "https://uatweb.hezongyy.com/uatjfmall/#/"; //跳转地址

// let path = "https://newapi.hezongyy.com/"; //正式服
// Vue.prototype.pathURL = "https://newapi.hezongyy.com/"; //正式服
// Vue.prototype.routerURL = "https://www.hezongyy.com/jfmall/#/"; //跳转地址

let path = "https://newapi.hezongyy.com/"; //正式服
Vue.prototype.pathURL = "https://newapi.hezongyy.com/"; //正式服
Vue.prototype.routerURL = "https://www.hezongyy.com/jfmall/#/"; //跳转地/

const url = {
  // 119主会场时间
  time119: path + "goods/119/time",
  //根据页面请求所有广告位广告
  adPost1: path + "goods/ad/byPage",
  // 首页秒杀
  flashIndex: path + "goods/119/flashSale",
  // 地级市
  getDistrict: path + "goods/district",
  // 积分商城商品详情
  pointsGoodsDetails: path + "person/PointGoods/vermilionBirdGoodsItem",
  // 积分商品(某个种类)
  pointsGoods: path + "person/PointGoods/getGoods",
  // 用户积分
  pointsInfo: path + "person/PointsHomePage/info",
  // 点击签到
  pointsSign: path + "person/PointSignIn/SignIn",
  // 加入礼品车
  addGiftCar: path + "person/FreeGiftCar/addGoods",
  // 礼品车商品
  giftCar: path + "person/FreeGiftCar/getGoods",
  // 提交订单商品信息
  pointsWriteGoods: path + "person/RedeemOurPoints/confirmOrder",
  // 我的积分
  userPoint: path + "person/MemberPoints/getMemberPoints",
  // 精品积分
  usersPoint: path + "person/RedeemOurPoints/createOrder",
  // 综合专区商品
  multiplePointsBird: path + "person/PointGoods/vermilionBirdGoodsInfo",
  // 删除礼品车中的商品（删除单个，删除多个）
  delGiftCar: path + "person/FreeGiftCar/delGoods",
  // 修改礼品车商品数量
  changeGiftCarNum: path + "person/FreeGiftCar/changeGoodsNumber",
  // 积分商城提交订单
  pointsSubmitOrder: path + "person/RedeemOurPoints/submit",
  // 精品积分
  boutique: path + "person/HighQualityPoints/redeem",

  // 原生传orderId
  orderIds: path + "person/HighQualityPoints/getHighQualityPoints",

  // 追加商品到礼品车
  additionalGoods: path + "person/FreeGiftCar/additionalGoods",
  // 综合专区详情
  birdGoodsDetails: path + "person/PointGoods/vermilionBirdGoodsItem",
  // 综合专区下单前确认订单
  birdWriteOrder: path + "person/RedeemOurPoints/vermilionBirdConfirmOrder",
  //  积分订单
  getPointsOrder: path + "person/RedeemOurPoints/getOrders",
  //积分订单详情
  pointsOrderDetails: path + "person/RedeemItem/getRedeemItem",
  // 积分签到信息
  signInfo: path + "person/PointSignIn/SignInItem",
  //  综合专区提交订单
  birdPointOrder: path + "person/RedeemOurPoints/createOrder",
  // 订单列表提交订单
  birdPointOrders: path + "person/RedeemOurPoints/reservation",
  // 搜索商品
  searchGoods: path + "person/PointGoods/goodsSearch",
  // 爆品金余额
  boomGoldMoney: path + "person/InVogueCoin/getInVogueCoin",
  // 爆品专区分类
  boomSort: path + "person/ExplosiveProducts/getGoodsCategory",
  // 商品列表
  boomGoodsList: path + "person/ExplosiveProducts/goodsSearch",
  // 爆品金商品详情
  boomGoodsDetails: path + "person/ExplosiveProducts/getGoodsInfo",
  // 爆品金下单前确认订单
  boomBeforeOrder: path + "person/ExplosiveProducts/confirmOrder",
  // 爆品金提交订单
  boomSubOrder: path + "person/ExplosiveProducts/createOrder",
  // 爆品金明细
  boomList: path + "person/InVogueCoin/getInVogueCoinItem",
  // 119优惠券是否领完
  isGetOver: path + "person/ActivityCoupon/getStatus",
  // 一键领取
  getOver: path + "person/ActivityCoupon/claimAll",
  // 下单抽奖次数
  submitTimes: path + "person/LuckyDraw/luckyDrawTimes",
  // 下单抽奖中奖名单
  luckUsers: path + "person/LuckyDraw/getLuckyWinners",
  // 下单抽奖
  startLuck: path + "person/LuckyDraw/luckyDraw",
  // 用户信息
  getUserInfo: path + "person/PersonalCenter/getUserInfo",
  // 物流信息
  birdLogistics: path + "person/LogisticsInformation/orderDetail",
  // 账期电子合同
  contracInfo: path + "person/Contract/contractInfo",
  //砸金蛋奖品列表
  getPrizes: path + "person/Prize/getPrizes",
  //敲蛋
  hitGoldenEggs: path + "person/LuckyDraw/hitGoldenEggs",
  // 常规特价
  promotionActivity: path + "rule/promotion/promotionActivity",
  //每日特价活动信息-按照当前时间查询活动信息
  everyDayPromotionMsg: path + "rule/promotion/everyDayPromotionMsg",
  //每日特价商品信息
  everyDayPromotionGoods: path + "rule/promotion/everyDayPromotionGoods",
  // 加入购物车
  addShopCar: path + "settlement/goodsCart/addGoodsCart",
  ///查询预告条数每日特价活动信息
  previewEveryDayPromotionMsg:
    path + "rule/promotion/previewEveryDayPromotionMsg",
  //广告位banner
  adPost: path + "goods/ad/v2/byPage",
  //加盟专区（优势、权益、流程）
  legalRight: path + "goods/franchise/legalRight",
  //加盟专区（提交记录）
  register: path + "/goods/franchise/register",
  // 阶梯价商品列表
  findPageTieredPricingGoods:
    path + "rule/promotion/findPageTieredPricingGoods",
  //erp分类
  cateLabel: path + "goods/GoodsCate/cateLabel",
  // 拼团活动商品列表
  groupPurchase: path + "rule/groupPurchase/list",
  // 新版拼团活动商品列表
  groupListByType: path + "rule/groupPurchase/listByType",
  // 预览拼团活动
  preview: path + "rule/groupPurchase/preview",
  // 加入购物车
  // addShopCarNew: path + "settlement/userShoppingCart/addGoodsCart",//原接口 
  addShopCarNew: path + "settlement/userShoppingCart/addShoppingCartGoods",
  // 抽奖活动信息
  luckyDrawInfo: path + "person/LuckyDraw/LuckyDrawInfo",
  // 下单抽奖抽中奖品
  getPrize: path + "person/LuckyDraw/getWinningPrizes",
  // 10元买100元优惠券列表
  purchaseList: path + "person/CouponCollectionCenter/purchaseList",
  // 阶梯价加购数量
  findPageNum: path + "rule/promotion/findPageTieredAddCartGoodsNum",
  // 119数据大屏 对外（倒计时 板块1）
  countDown: path1 + "screen/display/outer/countDown",
  // 119数据大屏对外（终端成交 板块2）
  terminalPvUv: path1 + "screen/display/outer/terminalPvUv",
  // 119数据大屏对外 对外（高峰时刻累计成交 板块3）
  peakTime: path1 + "screen/display/outer/peakTime",
  // 119数据大屏对外 对外（间隔两小时成交额 板块6）
  everyTwo: path1 + "screen/display/outer/everyTwo",
  // 119数据大屏对外 对外 （区域成交查询 板块4）
  districtGmv: path1 + "screen/display/outer/districtGmv",
  // 119数据大屏对外（盟友成交查询 板块5）
  allyGmv: path1 + "screen/display/outer/allyGmv",
  //开启盲盒
  openMysteryBox: path + "person/MysteryBox/openMysteryBox",
  //盲盒页面信息
  getMysteryBoxInfo: path + "person/MysteryBox/getMysteryBoxInfo",
  // 直播商品（1109主会场直播）
  liveGoods1109: path + "live/1109/goods",
  //  直播间列表（1109主会场直播）
  liveRooms1109: path + "live/1109/rooms",
  //抽奖-首页中奖信息霸屏
  popWindow: path + "person/LuckyDraw/popWindow",
  //分享数据大屏
  authorize: path1 + "screen/share/authorize",
  //保存上传地点
  orderSettlement: path + "person/RedeemOurPoints/settlement",
  //5.4.0可配置专区活动>
  //活动促销商品分页列表
  getPromotionGoodsPage: path+ "rule/promotion/getPromotionGoodsPage",
  //活动页面参数信息
  getPromotionPageInfo: path+ "rule/promotion/getPromotionPageInfo",
};
export default url;
